package cn.edu.scau.cmi.linzhiyang.abstractfactory.factory;

import cn.edu.scau.cmi.linzhiyang.abstractfactory.domain.PICC_BodyInjur;
import cn.edu.scau.cmi.linzhiyang.abstractfactory.domain.PICC_Collision;
import cn.edu.scau.cmi.linzhiyang.abstractfactory.domain.PICC_MutipleAccident;
import cn.edu.scau.cmi.linzhiyang.abstractfactory.domain.PICC_PersonInjur;
import cn.edu.scau.cmi.linzhiyang.abstractfactory.domainAbstractClass.InsuranceType;

public class PICC_Factory extends AbstractFactory {

	@Override
	public InsuranceType getInsuranceType(String type) {
		// TODO Auto-generated method stub
		switch (type) {
		case "驾驶员身体受伤":
			return new PICC_BodyInjur();
		case "汽车损坏":
			return new PICC_Collision();
		case "人员伤亡":
			return new PICC_PersonInjur();
		case "多种事故":
			return new PICC_MutipleAccident();
		}
		return null;
	}

	

	
}
